<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: yanchao
  Date: 2021/11/5
  Time: 下午7:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>还款记录 - 助学贷款系统</title>
    <link rel="stylesheet" href="./static/layui/css/layui.css">
    <link rel="stylesheet" href="./static/admin/css/style.css">
    <script src="./static/js/jquery-3.3.1.min.js"></script>
</head>
<body class="p20">

<%
    Date date = new Date();     //获取日期对象
    SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); //设置日期格式
    String today = df.format(date); //获取当前系统日期
%>

<fieldset class="layui-elem-field layui-field-title">
    <legend>还款记录</legend>
</fieldset>


<div class="layui-form-item">
    <label class="layui-form-label">贷款金额</label>
    <div class="layui-input-block">
        <input type="text" class="layui-input" readonly="readonly" value="${sessionScope.repay.amount}">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">放款日期</label>
    <div class="layui-input-block">
        <input type="text" class="layui-input" readonly="readonly" value="<fmt:formatDate value="${sessionScope.repay.duedate}" pattern="yyyy-MM-dd"/>">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">还款日期</label>
    <div class="layui-input-block">
        <input type="text" name="repaydate" readonly="readonly" class="layui-input" value="<fmt:formatDate value="${sessionScope.repay.repaydate}" pattern="yyyy-MM-dd"/>">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">贷款天数</label>
    <div class="layui-input-block">
        <input type="text" name="repaydate" readonly="readonly" class="layui-input" value="${sessionScope.repay.applyday}">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">年利率</label>
    <div class="layui-input-block">
        <input type="text" class="layui-input" readonly="readonly" value="5%">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">还款金额</label>
    <div class="layui-input-block">
        <input type="text" class="layui-input" readonly="readonly" value="${sessionScope.repay.repayamount}">
    </div>
</div>
<div class="layui-form-item">
    <div class="layui-input-block" style="text-align: center;">
        <button class="layui-btn" onclick="rec()">返回列表</button>

    </div>
</div>
<script type="text/javascript" language="javascript">
    function rec()
    {
        window.location.href="userRepayList.do";
    }
</script>
</body>
</html>

